﻿{{? it.isCreateNew}}
{{ var statusObj={auth:1,style:'',tip:'{{=_l('标记完成') }}' };  }}
{{ var task=it.task; }}
{{? }}
<li class="boderRadAll_3 singleTaskStage" data-taskid="{{=task.taskID}}" data-auth="{{=statusObj.auth}}" data-stageid="{{=task.stageID}}">
    <span class="markTask {{=statusObj.style }}" tip="{{=statusObj.tip}}"></span>
    <span class="listStageTaskName {{=task.status==1?'completeTask':''}}" title="{{!task.taskName}}">
        {{!task.taskName}}
    </span>
    <img class="chargeHeaderAvatar circle chargeImg {{=task.charge.status!=1?'userdisable':''}} {{=task.status==1?'opacity6':''}}" data-auth="{{=task.auth}}" src="{{=task.charge.avatar}}" alt="" data-id="{{=task.charge.accountID}}" />
    <i class="taskStar ThemeColor3 {{=task.star ? 'icon-task-star':'icon-star-hollow'}}"></i>
    <div class="listStageDate">
        {{?task.colorTags && task.colorTags.length}}
        <div class="colorTagsDiv mTop3 mRight10">
            {{~task.colorTags:tag}}
            <span class="colorTagCircle" style="background:{{=tag.color}}"></span> {{~}}
        </div>
        {{?}}
        {{?task.subCount}}
        <span class="taskTagsBG mTop3 mRight10">
            <i class="icon-task-card" tip="{{=_l('子任务')}}"></i>
            <span class="subCounts"><span class="completedNum">{{=task.completedNum > task.subCount ? task.subCount : task.completedNum}}</span>/<span class="subCount">{{=task.subCount}}</span></span>
        </span>
        {{?}}
        {{? task.totalItemCount > 0}}
        <span class="taskTagsBG mTop3 mRight10">
            <i class="icon-task-list Font14 cardColor" tip="{{=_l('检查清单')}}"></i>
            <span class="mLeft5 cardColor">{{=task.totalCompletedItemCount}}/{{=task.totalItemCount}}</span>
        </span>
        {{?}}
        <span class="deteLine mTop3" data-start="{{=task.startTime}}" data-end="{{=task.deadline}}" data-actdate="{{=task.actualStartTime}}" data-comdate="{{=task.completeTime}}">{{=it.formatTaskTime(task.status == 1, task.startTime, task.deadline, task.actualStartTime, task.completeTime)}}</span>
    </div>
    {{?task.showControls.length}}
    <div class="listStageCustomBox">
    {{~task.showControls:item:index}}
    {{item.value = it.returnCustonValue(item);}}
    {{item.value = item.type === 28 && item.value === '0' ? '' : item.value;}}
    {{?item.value}}
        <div class="listStageCustomItem">
            {{?item.type !== 28}}
                <div class="listStageCustomItemDesc Font12"><span class="listStageCustomItemColor">{{=item.controlName}}：</span>{{!item.value}}{{=item.type === 6 || item.type === 8 ? item.unit : ''}}</div>
            {{??}}
                <div class="flexRow Font12">
                    <span class="mRight10"><span class="listStageCustomItemColor"><span class="overflow_ellipsis">{{=item.controlName}}</span>：</span>{{=item.enumDefault !== 1 ? item.value + '/10' : ''}}</span><span class="listStageCustomItemStar flex" data-type="score" data-enum="{{=item.enumDefault}}" data-score="{{=item.value}}"></span>
                </div>
            {{?}}
        </div>
    {{?}}
    {{~}}
    </div>
    {{?}}
</li>
